package top.ffhome.multithread.ch09.demo02;

public class Host {
    public Data request(final int count, final char c) {
        System.out.println("  request(" + count + ", " + c + ") BEGIN");
        FutureData future = new FutureData(() -> {
            return new RealData(count, c);
        });
        new Thread(future).start();
        System.out.println("  request(" + count + ", " + c + ") END");
        return future;
    }
}
